iPhoneJS.fn.extend({
	orientation : function(options){
		var self = this, handler = [];
		
		// exec on load
		window.setTimeout(scrollTo, 100, 0, 1);
		
		add = function(callback){
			handler.push(callback);
		};
		window.onorientationchange = function(e){
			self.attr( "orient", window.orientation == 0 ? "profile" : "landscape")
			window.setTimeout(scrollTo, 100, 0, 1);
			for(i=0;i<handler.length;i++){
				handler[i]();
			}
		};
 	}
 });